package top.greatxiaozou.log;

import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

public class BeforeLog implements MethodBeforeAdvice {
    @Override
    public void before(Method method, Object[] args, Object target) throws Throwable {
        System.out.println("对象" + target.getClass().getName() + "的方法" + method.getName() + "被调用了哈哈哈哈");
    }
}
